<?php
	
	header('Content-type:text/html;charset=utf-8');
	$id = $_GET['message_id'];
	$link = mysql_connect('localhost','root','root');
	$z = mysql_select_db('users',$link);
	$sql = "delete from guestmessage where id=".$id;
	
	$qry = mysql_query($sql);
	
	if($qry){
		header('Refresh:3;url=admin_index.php');
		echo '删除成功';
	}else{
		header('Refresh:3;url=admin_index.php');
		echo '删除失败';
	}
?>